home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 21 code / Hierarchical Lists / CMyDiskListBox.h < prev    next >
Encoding:
Text File  |  1994-07-06  |  870 b   |  31 lines  |  [TEXT/MMCC]

  1. // ===========================================================================
  2. //    CDisk1ListBox.h            ©1994 Jan Bruyndonckx All rights reserved.
  3. //    v1.0 18/6/94
  4. //
  5. //    A hierarchical demo listbox: shows the disk hierarchy as text only
  6. //
  7. // ===========================================================================
  8.  
  9. #include "CTwistDownListBox.h"
  10.  
  11. class CMyDiskListBox : public CTwistDownListBox {
  12.  
  13.   public:
  14.       enum {
  15.           classID    = 'dlst'
  16.       } ;
  17.       
  18.       static CMyDiskListBox*    CreateFromStream (LStream *inStream);
  19.  
  20.     CMyDiskListBox (LStream *inStream);
  21.  
  22.   protected:
  23.     virtual void    ExpandElement (const Cell theCell) ;
  24.     virtual void    DrawTwistedElement (const Rect *lRect,
  25.                                         const TwistDownRecPtr twistElement,
  26.                                         const short lDataLen) ;
  27.     
  28.     virtual void    ResizeFrameBy (Int16 inWidthDelta, Int16 inHeightDelta,    // from LPane
  29.                                     Boolean inRefresh) ;
  30.  
  31. } ;